[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
REPLACE(SEXP1,SEXP2,SEXP3) (STRING)
Function
Change all occurences of a given character to another character in a
string.
Syntax
REPLACE(str,old,new)
str = Any string expression.
old = A string expression with the old character to be replaced.
new = A string expression with the new character to replace with.
NOTE: Only the first character of the old and new strings is used for
the comparison and replacement.
Return Type & Value
STRING
Returns str with all occurences of old changed to new.
Remarks
This function will search a string for a given character and replace
all instances of that character with another character. This can be
useful in many scenarios, especially when formatting text for display
purposes.
Examples
PRINTLN "Your internet address on this system is:"
PRINTLN REPLACE(LOWER(U_NAME())," ","."),"@clarkdev.com"
See Also:
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson